<?php

namespace app\mobile\validate;


use think\Validate;

class HomeworkValidate extends Validate
{
    protected $rule = [
        'class_id' => 'require|gt:0',
        'progress' => 'require',
        'progress' => 'require',
    ];
    protected $message = [
        'class_id'=>'请选择班级',
        'class_id.gt' => '班级不能为空',
        'progress.require' => '课程进度不能为空',
    ];
    protected $scene = [
        'add'  => ['name', 'app'],
        'edit' => ['name', 'app'],

    ];


}